package cn.jeefast;

import cn.jeefast.resthz.webservice.service.CarWebService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
public class TestWeb {
    @Resource
    private CarWebService carWebService;
    @RequestMapping("/test")
    public String test() {
        return "/ceshi";
    }

    @RequestMapping("/test2")
    @ResponseBody
    public String test2() {
        return "ceshi";
    }
}
